<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目列表</title>
<link rel="stylesheet" type="text/css" href="../style/main.css" />
<script language="javascript" type="text/javascript" src="../js/base.js"></script>
</head>
<body>

<script  type="text/JavaScript">
function on_delete(pid)
{
	if (!confirm("确认删除策略" + name + "(" + gid + ")！"))
	{
		return false;
	}
	
	
    var postData = [];
    postData.push("gid=" + gid); 
		
    SetAjax("policy_del_post.php", "post:" + postData.join("&"), function(data){
        eval("var res = " + data);
        if(res.status == 0)
        {
        	alert("删除成功！");
            location.reload();
        }       
        else    
        {       
            alert(res.error);
        }       
    }, true);   
}
</script>
<div width='100%' class="nav">
当前位置：
<a href='project.php'>我的项目</a>&nbsp;>&nbsp;
<a href='template_list.php?project_id={%$g_show.project_id%}'>{%$g_show.project_name%}</a>
</div>
<div width='100%' class="platform_toolbar_main">
	<a href='/admin/platform/export_platform_info.php?admin' target='_blank'>导出后台SQL</a>
	<a href='/admin/platform/export_platform_info.php' target='_blank'>导出项目SQL</a>
	<a href='/admin/platform/datadef_search.php' target='_blank'>数据域查询</a>
	<a href='template_edit.php?project_id={%$g_show.project_id%}' >创建模板</a>
	<a href='template_copy.php?project_id={%$g_show.project_id%}' >拷贝模板</a>
</div>

<div width='100%' class="platform_error">

</div>

<div class="pages">{%$g_show.page_bar%}</div>
<div style='color:red'>当前项目共有 <span style='font-size:16px;'>{%$g_show.all_template_count%}</span> 个模板，您当前获得授权的有 <span style='font-size:16px;'>{%$g_show.user_template_count%}</span> 个模板，请联系管理员授权！或 <a href='/admin/platform/p_template_user_edit.php?uid={%$g_show.current_uid%}&project_id={%$g_show.project_id%}' target='_blank'>自己授权</a> ！</div>
<table style='width:100%'>
  <tr align="center">
    <td width="10%"><b>模板ID</b></td>
    <td><b>模板名称</b></td>
    <td width="10%"><b>模板域</b></td>
    <td width="10%"><b>数据域</b></td>
    <td width="10%"><b>状态</b></td>
</tr>
{%$g_show.list%}	
</table>
<div class="pages">{%$g_show.page_bar%}</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

</body>
</html>